package wu2020.top.compare.orm.demo;

import org.beetl.ext.spring6.EnableBeetl;
import org.beetl.sql.clazz.kit.BeanKit;
import org.beetl.sql.core.SQLManager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.wu.framework.lazy.orm.core.stereotype.LazyScan;
import wu2020.top.compare.orm.demo.config.DynamicDbVisitorAutoConfiguration;
import wu2020.top.compare.orm.demo.infrastructure.mapper.jpa.BatchSaveRepositoryImpl;
import net.hasor.dbvisitor.spring.annotation.MapperScan;


@EnableJpaRepositories(
        repositoryBaseClass = BatchSaveRepositoryImpl.class
) // jpa
@LazyScan(scanBasePackages ="wu2020.top.compare.orm.demo.infrastructure.entity" )
@SpringBootApplication()
@Import(DynamicDbVisitorAutoConfiguration.class)// dbvisitor
@MapperScan(value = "wu2020.top.compare.orm.demo.infrastructure.mapper.dbvisitor") // dbvisitor
@EnableBeetl
public class CompareOrmDemoApplication  {

    public static void main(String[] args) {
        SpringApplication.run(CompareOrmDemoApplication.class, args);
    }


}


